﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace MilitaryPluginInterface
{
    public class NormalState : MilitaryState
    {
        public override void updateState(GameTime gameTime, Military military)
        {
            if (!_isAlreadyUpdate)
            {
                _isAlreadyUpdate = true;
                military.Speed /= 1.1f;
                military.StrengthAttack = (int)(military.StrengthAttack / 1.5f);
                military.RangeAttack = (int)(military.RangeAttack / 1.2f);
                military.Defend = (int)(military.Defend / 1.2f);
                military.Delay = (int)(military.Delay / 0.5f);
            }
            if (_currentTime < 1000 && military.Scale > 1)
            {
                _currentTime += gameTime.ElapsedGameTime.Milliseconds;
                military.Scale -= 0.004f;
            }
        }

        public override string getStateName()
        {
            return @"NormalState";
        }
    }
}
